package com.xhui.vimarket.common;

/**
 * =============================================================================<br>
 * 版权： 福富软件 版权所有 (c) 2007 - 2008<br>
 * 文件包： com.xhui.crm.common 所含类： Constants 编写人员： 创建日期：2007-03-27
 * 功能说明：商机管理系统中用到的常量定义 更新记录： 日期 作者 内容<br>
 * =============================================================================<br>
 * 2007-03-27 陈军 增加
 * =============================================================================<br>
 */

/**
 * Constant values used throughout the application.
 * <p>
 * <a href="Constants.java.html"><i>View Source</i></a>
 * </p>
 * 
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
public class Constants {
    /**
     * 构造函数.
     */
    protected Constants() {
        
    }
    
    // ~ Static fields/initializers
    // =============================================
    
    /** The name of the ResourceBundle used in this application. */
    public static final String  BUNDLE_KEY                       = "ApplicationResources";
    
    /** The encryption algorithm key to be used for passwords. */
    public static final String  ENC_ALGORITHM                    = "algorithm";
    
    /** A flag to indicate if passwords should be encrypted. */
    public static final String  ENCRYPT_PASSWORD                 = "encryptPassword";
    
    /** File separator from System properties. */
    public static final String  FILE_SEP                         = System
                                                                     .getProperty("file.separator");
    
    /** User home from System properties. */
    public static final String  USER_HOME                        = System.getProperty("user.home")
                                                                     + Constants.FILE_SEP;
    
    /** The name of the configuration hashmap stored in application scope. */
    public static final String  CONFIG                           = "appConfig";
    
    /**
     * Session scope attribute that holds the locale set by the user. By setting
     * this key to the same one that Struts uses, we get synchronization in
     * Struts w/o having to do extra work or have two session-level variables.
     */
    public static final String  PREFERRED_LOCALE_KEY             = "org.apache.struts.action.LOCALE";
    
    /**
     * RET_TRUE String.
     */
    public static final String  RET_TRUE                         = "TRUE";
    
    /**
     * RET_FALSE String.
     */
    public static final String  RET_FALSE                        = "FALSE";
    
    /**
     * RET_INVALID String.
     */
    public static final String  RET_INVALID                      = "INVALID";
    
    /**
     * 接口开关关闭标识
     */
    public static final String  INTF_WS_CLOSED                   = "CLOSED";
    /**
     * OP_TAG String.
     */
    public static final String  COMMON_OP_TAG                    = "op";
    
    /**
     * COMMON_OP_DESC String.
     */
    public static final String  COMMON_OP_DESC                   = "opDesc";
    
    /**
     * OP_INSERT String.
     */
    public static final String  COMMON_OP_INSERT                 = "INSERT";
    
    /**
     * OP_INSERT String.
     */
    public static final String  COMMON_OPT_NEW                   = "NEW";
    
    /**
     * OP_DELETE String.
     */
    public static final String  COMMON_OP_DELETE                 = "DELETE";
    
    /**
     * OP_UPDATE String.
     */
    public static final String  COMMON_OP_UPDATE                 = "UPDATE";
    
    /**
     * OP_VIEW String.
     */
    public static final String  COMMON_OP_VIEW                   = "VIEW";
    
    /**
     * COMMON_STATE String.
     */
    public static final String  COMMON_STATE                     = "COMMON_STATE";                   // 通用状态类型
    /**
     * COMMON_STATE_70N String.
     */
    public static final String  COMMON_STATE_70N                 = "70N";                            // 新增
    /**
     * COMMON_STATE_70A String.
     */
    public static final String  COMMON_STATE_70A                 = "70A";                            // 在用
    /**
     * COMMON_STATE_70X String.
     */
    public static final String  COMMON_STATE_70X                 = "70X";                            // 失效
    /**
     * COMMON_STATE_70C String.
     */
    public static final String  COMMON_STATE_70C                 = "70C";                            // 生效，在用
    /**
     * default pagesize. 默认页数.
     */
    public static final int     DEF_PAGESIZE                     = 10;
    
    /**
     * default currentPage. 默认当前页面.
     */
    public static final int     DEF_CURRPAGE                     = 1;
    
    /**
     * BOOL_TRUE.
     */
    public static final boolean BOOL_TRUE                        = true;
    
    /**
     * BOOL_FALSE.
     */
    public static final boolean BOOL_FALSE                       = false;
    
    /**
     * STRING_ALL.
     */
    public static final String  STRING_ALL                       = "ALL";
    
    /**
     * ZK 的换行符
     */
    public static final String  ZK_UI_BREAK                      = "  ";
    
    /**
     * 区域类型定义 C1_集团
     */
    public static final String  REGION_TYPE_C1                   = "1000";
    
    /**
     * 区域类型定义 C2_省公司
     */
    public static final String  REGION_TYPE_C2                   = "1100";
    
    /**
     *区域类型定义 C3_地市公司(本地网)
     */
    public static final String  REGION_TYPE_C3                   = "1300";
    
    /**
     *区域类型定义 C4_县、市级
     */
    public static final String  REGION_TYPE_C4                   = "1499";
    
    /**
     * 读卡
     */
    public static final String  OPTYPE_READ                      = "read";
    
    /**
     * 写卡
     */
    public static final String  OPTYPE_WRITE                     = "write";
    
    /**
     * 管理卡
     */
    public static final String  CARD_TYPE_MANAGE                 = "MANAGE";
    
    /**
     * 员工卡
     */
    public static final String  CARD_TYPE_STAFF                  = "STAFF";
    
    /**
     * 移动电话
     */
    public static final String  PARTY_CONTACT_SORT_MOBILE        = "1";
    
    /**
     * 办公电话
     */
    public static final String  PARTY_CONTACT_SORT_OFFICE        = "2";
    
    /**
     * 家庭电话
     */
    public static final String  PARTY_CONTACT_SORT_HOME          = "3";
    
    /**
     * 传真
     */
    public static final String  PARTY_CONTACT_SORT_FAX           = "4";
    
    /**
     * Email
     */
    public static final String  PARTY_CONTACT_SORT_EMAIL         = "5";
    
    /**
     * 邮寄地址
     */
    public static final String  PARTY_CONTACT_SORT_POST          = "6";
    
    /**
     * QQ号码
     */
    public static final String  PARTY_CONTACT_SORT_QQ            = "7";
    /**
     *外系统调用查询客户资料
     */
    public static final String  PAGE_CODE_CRM2_CUST_MAIN_PAGE    = "CRM2_CUST_MAIN_PAGE";
    
    /**
     *外系统调用查询客户资料
     */
    public static final String  PAGE_CODE_CRM2_CUSTMGR_MAIN_PAGE = "CRM2_CUSTMGR_MAIN_PAGE";
    
    /**
     * 市-1000 引商入店-1100  TOP10商家名称-1200  大连锁商家名称-1300  电脑门店-1400  引C入G-1500'
     */
    public static final String CHANNEL_TYPE_0 = "1000";
    
    public static final String CHANNEL_TYPE_1 = "1100";
    
    public static final String CHANNEL_TYPE_2 = "1200";
    
    public static final String CHANNEL_TYPE_3 = "1300";
    
    public static final String CHANNEL_TYPE_4 = "1400";
    
    public static final String CHANNEL_TYPE_5 = "1500";
    
    public static final String  PASSWORD="密码";
}
